package com.spdzen.model;


import com.baomidou.mybatisplus.activerecord.Model;
import java.util.Date;
import com.baomidou.mybatisplus.annotations.TableField;
import com.baomidou.mybatisplus.annotations.TableName;
import com.baomidou.mybatisplus.annotations.TableId;
import java.io.Serializable;


/**
 * <p>
 * 文件资料
 * </p>
 *
 * @author accountwcx@qq.com
 * @since 2017-03-16
 */
@TableName("spd_document")
public class Document extends Model<Document> {

    private static final long serialVersionUID = 1L;


	@TableId("id")
	private Long id;

	@TableField("title")
	private String title;
    /**
     * 文件来源，作者
     */

	@TableField("author")
	private String author;
    /**
     * 文件在服务器上的保存路径
     */

	@TableField("url")
	private String url;
    /**
     * 文件全名，包含扩展名
     */

	@TableField("fullname")
	private String fullname;
    /**
     * 文件大小，单位字节
     */

	@TableField("size")
	private Long size;
    /**
     * 扩展名，如doc等
     */

	@TableField("ext_name")
	private String extName;
    /**
     * 文件描述
     */

	@TableField("description")
	private String description;
    /**
     * 发布状态，2不发布，1允许发布
     */

	@TableField("publish_status")
	private Integer publishStatus;
    /**
     * 下载次数
     */

	@TableField("download_count")
	private Long downloadCount;
    /**
     * 操作时间（创建/修改）
     */

	@TableField("operate_time")
	private Date operateTime;
    /**
     * 用户id
     */

	@TableField("operate_id")
	private Long operateId;


	public Long getId() {
		return id;
	}

	public Document setId(Long id) {
		this.id = id;
		return this;
	}

	public String getTitle() {
		return title;
	}

	public Document setTitle(String title) {
		this.title = title;
		return this;
	}

	public String getAuthor() {
		return author;
	}

	public Document setAuthor(String author) {
		this.author = author;
		return this;
	}

	public String getUrl() {
		return url;
	}

	public Document setUrl(String url) {
		this.url = url;
		return this;
	}

	public String getFullname() {
		return fullname;
	}

	public Document setFullname(String fullname) {
		this.fullname = fullname;
		return this;
	}

	public Long getSize() {
		return size;
	}

	public Document setSize(Long size) {
		this.size = size;
		return this;
	}

	public String getExtName() {
		return extName;
	}

	public Document setExtName(String extName) {
		this.extName = extName;
		return this;
	}

	public String getDescription() {
		return description;
	}

	public Document setDescription(String description) {
		this.description = description;
		return this;
	}

	public Integer getPublishStatus() {
		return publishStatus;
	}

	public Document setPublishStatus(Integer publishStatus) {
		this.publishStatus = publishStatus;
		return this;
	}

	public Long getDownloadCount() {
		return downloadCount;
	}

	public Document setDownloadCount(Long downloadCount) {
		this.downloadCount = downloadCount;
		return this;
	}

	public Date getOperateTime() {
		return operateTime;
	}

	public Document setOperateTime(Date operateTime) {
		this.operateTime = operateTime;
		return this;
	}

	public Long getOperateId() {
		return operateId;
	}

	public Document setOperateId(Long operateId) {
		this.operateId = operateId;
		return this;
	}

	@Override
	protected Serializable pkVal() {
		return this.id;
	}

}